home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / DateFormatZoneData_en_CA.java < prev    next >
Text File  |  1998-09-22  |  6KB  |  125 lines

  1.  /*
  2.  * @(#)DateFormatZoneData_en_CA.java    1.7 98/01/12
  3.  *
  4.  * (C) Copyright Taligent, Inc. 1996 - All Rights Reserved
  5.  * (C) Copyright IBM Corp. 1996 - All Rights Reserved
  6.  *
  7.  * Portions copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved.
  8.  *
  9.  *   The original version of this source code and documentation is copyrighted
  10.  * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These
  11.  * materials are provided under terms of a License Agreement between Taligent
  12.  * and Sun. This technology is protected by multiple US and International
  13.  * patents. This notice and attribution to Taligent may not be removed.
  14.  *   Taligent is a registered trademark of Taligent, Inc.
  15.  *
  16.  * Permission to use, copy, modify, and distribute this software
  17.  * and its documentation for NON-COMMERCIAL purposes and without
  18.  * fee is hereby granted provided that this copyright notice
  19.  * appears in all copies. Please refer to the file "copyright.html"
  20.  * for further important copyright and licensing information.
  21.  *
  22.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
  23.  * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  24.  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  25.  * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
  26.  * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
  27.  * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  28.  *
  29.  */
  30.  
  31. package java.text.resources;
  32.  
  33. import java.util.ListResourceBundle;
  34.  
  35. /**
  36.  * Supplement package private date-time formatting zone data for DateFormat.
  37.  * DateFormatData used in DateFormat will be initialized by loading the data
  38.  * from LocaleElements and DateFormatZoneData resources. The zone data are
  39.  * represented with the following form:
  40.  * {ID, long zone string, short zone string, long daylight string,
  41.  * short daylight string, representative city of zone}, where ID is
  42.  * NOT localized, but is used to look up the localized timezone data
  43.  * internally. Localizers can localize any zone strings except
  44.  * for the ID of the timezone.
  45.  
  46.  * @see          ListResourceBundle
  47.  * @see          Format
  48.  * @see          DateFormatData
  49.  * @see          LocaleElements
  50.  * @see          SimpleDateFormat
  51.  * @see          TimeZone
  52.  * @version      1.7 01/12/98
  53.  * @author       Chen-Lieh Huang
  54.  * @author       Alan Liu
  55.  */
  56. //  Canada DateFormatZoneData
  57. //
  58. public final class DateFormatZoneData_en_CA extends ListResourceBundle
  59. {
  60.     /**
  61.      * Overrides ListResourceBundle
  62.      */
  63.     public Object[][] getContents() {
  64.         return contents;
  65.     }
  66.  
  67.     private static final String kZoneStrings[][] = {
  68.         // Zones should have unique names and abbreviations within this locale.
  69.         // Names and abbreviations may be identical if the corresponding zones
  70.         // really are identical.  E.g.: America/Phoenix and America/Denver both
  71.         // use MST; these zones differ only in that America/Denver uses MDT as
  72.         // well.
  73.         //
  74.         // We list both short and long IDs.  Short IDs come first so that they
  75.         // are chosen preferentially during parsing of zone names.
  76.         //
  77.         {"PST", "Pacific Standard Time", "PST",
  78.          "Pacific Daylight Time", "PDT" /*San Francisco*/},
  79.         {"MST", "Mountain Standard Time", "MST",
  80.          "Mountain Daylight Time", "MDT" /*Denver*/},
  81.         {"PNT", "Mountain Standard Time", "MST",
  82.          "Mountain Standard Time", "MST" /*Phoenix*/},
  83.         {"CST", "Central Standard Time", "CST",
  84.          "Central Daylight Time", "CDT" /*Chicago*/},
  85.         {"EST", "Eastern Standard Time", "EST",
  86.          "Eastern Daylight Time", "EDT" /*New York*/},
  87.         {"IET", "Eastern Standard Time", "EST",
  88.          "Eastern Standard Time", "EST" /*Indianapolis*/},
  89.         {"HST", "Hawaii Standard Time", "HST",
  90.          "Hawaii Standard Time", "HST" /*Honolulu*/},
  91.         {"AST", "Alaska Standard Time", "AKST",
  92.          "Alaska Daylight Time", "AKDT" /*Anchorage*/},
  93.         {"CNT", "Newfoundland Standard Time", "NST",
  94.          "Newfoundland Daylight Time", "NDT" /*St. John's*/},
  95.  
  96.         {"America/Los_Angeles", "Pacific Standard Time", "PST",
  97.          "Pacific Daylight Time", "PDT" /*San Francisco*/},
  98.         {"America/Denver", "Mountain Standard Time", "MST",
  99.          "Mountain Daylight Time", "MDT" /*Denver*/},
  100.         {"America/Phoenix", "Mountain Standard Time", "MST",
  101.          "Mountain Standard Time", "MST" /*Phoenix*/},
  102.         {"America/Chicago", "Central Standard Time", "CST",
  103.          "Central Daylight Time", "CDT" /*Chicago*/},
  104.         {"America/New_York", "Eastern Standard Time", "EST",
  105.          "Eastern Daylight Time", "EDT" /*New York*/},
  106.         {"America/Indianapolis", "Eastern Standard Time", "EST",
  107.          "Eastern Standard Time", "EST" /*Indianapolis*/},
  108.         {"Pacific/Honolulu", "Hawaii Standard Time", "HST",
  109.          "Hawaii Standard Time", "HST" /*Honolulu*/},
  110.         {"America/Anchorage", "Alaska Standard Time", "AKST",
  111.          "Alaska Daylight Time", "AKDT" /*Anchorage*/},
  112.         {"America/Halifax", "Atlantic Standard Time", "AST",
  113.          "Atlantic Daylight Time", "ADT" /*Halifax*/},  
  114.         {"America/St_Johns", "Newfoundland Standard Time", "NST",
  115.          "Newfoundland Daylight Time", "NDT" /*St. John's*/},
  116.     };
  117.  
  118.     private static final String kLocalPatternChars = "GyMdkHmsSEDFwWahKz";
  119.  
  120.     static final Object[][] contents = {
  121.         {"zoneStrings",         kZoneStrings},
  122.         {"localPatternChars",   kLocalPatternChars},
  123.     };
  124. }
  125.